class DataMgr {
    curScore = 0;
    maxscore = 0;
    getScore(key) {
        return this[key];
    }
    saveScore(key, value) {
        this[key] = value;
    }
}

let instance = null;
function getInstance() {
    if (!instance) {
        instance = new DataMgr();
    }
    return instance;
}

module.exports.getInstance = getInstance;